package com.cn.design.state;

/**
 * @author: zhangyiting
 * @description:
 * @createDate: Created in 2022/7/5 23:15
 * @version: 1.0
 */
public class SleepingState extends State {
    @Override
    public void writeProgram(Work w) {
        if (w.getHour() < 13) {
            System.err.println("当前时间: 不行了，睡着了。" + w.getHour() + "点");
        }
    }
}

